<?php /*a:3:{s:53:"/home/pirate/wx_manager/app/appmsg/view/m/detail.html";i:1606731185;s:38:"../app/common/m/detail_tpl/header.html";i:1606730761;s:38:"../app/common/m/detail_tpl/footer.html";i:1606729525;}*/ ?>
<?php
use app\common\helper\tpl_helper;
?>
<!doctype html>
<html>
<head>
  <meta charset="UTF-8">
  <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport">
  <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)" name="viewport">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="black" name="apple-mobile-web-app-status-bar-style">
  <meta content="telephone=no" name="format-detection">
  <?php echo htmlentities($tpl_info = tpl_helper::get_selected_tpl_info()); ?>
  <!--<?php echo htmlentities($detail_tpl_id = tpl_helper::get_detail_tpl()); ?>-->
  <title><?php if($title): ?><?php echo htmlentities($title); else: ?>微官网<?php endif; ?></title>
  <link rel="stylesheet" type="text/css" href="/static/css/base.css" />
  <link rel="stylesheet" type="text/css" href="/static/css/m-common.css" />
  <link rel="stylesheet" type="text/css" href="/static/css/m-detail-<?php echo tpl_helper::get_detail_tpl(); ?>.css" />
  <script type="text/javascript" src="/static/js/jquery-1.8.1.min.js"></script>
  <script src="<?php echo htmlentities(SITE_URL); ?>/static/js/m/jweixin-1.0.0.js"></script>
  <script type="text/javascript" src="/js/m/common.js"></script>
  <script type="text/javascript">
      var SITE_URL = "<?php echo htmlentities(SITE_URL); ?>";
      var siteUrl = "<?php echo htmlentities(SITE_URL); ?>";
      var userId = "<?php echo htmlentities($user_id); ?>";

      //微信分享
      var shareObj = {};

      //分享的文案
      shareObj.title   = '管理';
      shareObj.desc    = '';
      shareObj.timelineDesc = '管理';
      shareObj.shareLink    = siteUrl+'/m';
      shareObj.shareImg     = siteUrl+'/img/share/share_img001.png';
  </script>
</head>
<body>
<div class="wrap">
  <div class="main-detail" style="overflow:hidden;">

<div class="detail-header">
  <h3><?php echo htmlentities($info['title']); ?></h3>
  <p><?php echo time_format($info['add_time']); ?></p>
</div>

<?php if($info['cover'] && $info['show_cover'] == 1): ?>
<div class="detail-pic">
  <img src="<?php echo _image($info['cover'], 'big'); ?>">
</div>
<?php endif; ?>
<div class="detail-txt">
  <p><?php echo htmlspecialchars_decode($info['content']); ?></p>
</div>
<?php if($info['source_url']): ?>
<div class="detail-footer-link" style="margin:15px 0px;">
  <a style="color: #607fa6; text-decoration: none; font-size: 16px;" href="<?php echo htmlentities($info['source_url']); ?>">阅读原文</a>
</div>
<?php endif; ?>
<script>
    shareObj.title   = '<?php echo htmlentities($info['title']); ?>';
    shareObj.desc    = '<?php echo htmlentities($info['intro']); ?>';
    shareObj.timelineDesc = '<?php echo htmlentities($info['title']); ?>';
    shareObj.shareLink    = siteUrl+'/appmsg/m/<?php echo htmlentities($info['id']); ?>';
    shareObj.shareImg     = "<?php echo _image($info['cover'], 'big', '', 1); ?>";
    shareObj.resName   = 'appmsg';
    shareObj.resId   = "<?php echo htmlentities($info['id']); ?>";
</script>
    <div class="detail-share clearfix" style="display:none;">
      <div id="mcover" style="display: none;">
        <img src="<?php echo htmlentities(SITE_URL); ?>/images/guide.png">
      </div>
      <button class="button2 js_shareToFriend"><img src="<?php echo htmlentities(SITE_URL); ?>/images/m-detail/1/icon_msg.png" width="22" height="22">&nbsp;发送给朋友</button>
      <button class="button2 js_shareToFriend"><img src="<?php echo htmlentities(SITE_URL); ?>/images/m-detail/1/icon_timeline.png" width="22" height="22">&nbsp;分享到朋友圈</button>
    </div>
    <a class="footer-btn js_goTop" href="javascript:void(0);"><span class="top">返回顶部</span></a>
  </div>
</div>
<script src="<?php echo htmlentities(SITE_URL); ?>/static/js/m/wx.js"></script>
<script>
$(function(){
  // 隐藏微信浏览器底部toolbar
  hideWeixinToolBar();
  
  // to-top
  $('.js_goTop').click(function(){
    window.scrollTo(0, 0);
  });
  
  // 分享遮罩
  $('.js_shareToFriend').click(function(){
    $('#mcover').show();
  });
  $('#mcover').click(function(){
    $(this).hide();
  });
  
  if ($(".main-detail").length >= 1) {
    var windowW = $('.main-detail').width();
    var newH = parseInt(250/370*windowW);
    
    $(".main-detail iframe").css({ 'width':windowW+'px', 'height':newH+'px' });
  }
});
</script>
</body>
</html>